<html>
  <head>
    <title>TensorFlow.TFBuffer</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <style>
      @media (min-width:1200px) {
         body {
	     max-width: 100ch;
	     padding: 0 5%;
	     margin-left: auto;
	     margin-right: auto;         
	 }
      }
      @media (min-width:1200px) {
      }

      body {
         font-family: segoe-ui_normal,Segoe UI,Segoe,Segoe WP,Helvetica Neue,Helvetica,sans-serif;
      }

      a { text-decoration: none }

      div.SideBar {
        padding-left: 1em;
        padding-right: 1em;
        right: 0;
        float: right;
        border: thin solid black;
        background-color: #f2f2f2;
	visibility: hidden;
      }

      .CollectionTitle { font-weight: bold }
      .PageTitle { 
      	font-family: segoe-ui_light,Segoe UI Light,Segoe WP,Helvetica Neue,Helvetica,sans-serif;
	font-size: 2.5rem;
	margin-bottom: 0;
	margin-top: 10px;
	font-weight: 300;
	font-style: normal;
	line-height: 1.3;
	text-rendering: optimizeLegibility;
      }

      .Summary { 
        margin-top: 0;
      }
      .Signature { 
         font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,sans-serif;
	 line-height: 1.25;
	 -webkit-font-smoothing: auto;
	 -moz-osx-font-smoothing: auto;
      }
      .Remarks { }
      .Members { }
      .Copyright { }
      
      .Section, h2 { 
	color: #4c668b;
	font-size: 1.875rem;
	font-family: segoe-ui_semibold;
	word-break: break-all;
      }
      p.Summary {
        margin-left: 1em;
      }
      .SectionBox { 
      }

      .SectionBox b a {
          font-size: .875rem;
          font-weight: normal;
      }
      
      a:hover {
          text-decoration: underline;
      }

      .NamespaceName { font-size: 105%; font-weight: bold }
      .NamespaceSumary { }
      .MemberName { font-size: 115%; font-weight: bold; margin-top: 1em }
      .Subsection { 
          margin-bottom: 2px;
	  margin-top: 24px;
      }
      .SubsectionBox dl dt i { 
          font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,sans-serif;      
      }

      .CodeExampleTable { background-color: #f5f5dd; border: thin solid black; padding: .25em; }
      
      .TypesListing {
        border-collapse: collapse;
      }

      td {
        vertical-align: top;
      }
      th {
        text-align: left;
      }

      .TypesListing td { 
        margin: 0px;  
        padding: .25em;
        border: solid gray 1px;
      }

      .TypesListing th { 
        margin: 0px;  
        padding: .25em;
        background-color: #f2f2f2;
        border: solid gray 1px;
      }

      div.Footer {
        border-top: 1px solid gray;
        margin-top: 1.5em;
        padding-top: 0.6em;
        text-align: center;
        color: gray;
      }

      span.NotEntered /* Documentation for this section has not yet been entered */ {
        font-style: italic;
        color: lightgrey;
      }

      div.Header {
        background: #B0C4DE;
        border: double;
        border-color: white;
        border-width: 7px;
        padding: 0.5em;
      }

      div.Header * {
        font-size: smaller;
      }

      div.Note {
      }

      i.ParamRef {
      }

      i.subtitle {
      }

      ul.TypeMembersIndex {
        text-align: left;
        background: #F8F8F8;
      }

      ul.TypeMembersIndex li {
        display: inline;
        margin:  0.5em;
      }

      table.HeaderTable {
      }

      table.SignatureTable {
      }

      table.Documentation, table.Enumeration, table.TypeDocumentation {
        border-collapse: collapse;
        width: 100%;
	font-size: 0.875rem;
      }

      table.Documentation tr th, table.TypeMembers tr th, table.Enumeration tr th, table.TypeDocumentation tr th {
        background: whitesmoke;
        padding: 0.8em;
        border: 1px solid gray;
        text-align: left;
        vertical-align: bottom;
      }

      table.Documentation tr td, table.TypeMembers tr td, table.Enumeration tr td, table.TypeDocumentation tr td {
        border-width: 1px 0 0;
	border-style: solid;
	border-color: #e0e0e0;
        text-align: left;
        vertical-align: top;
      }

      table.Documentation tr td:nth-last-child(2), table.TypeMembers tr td:nth-last-child(2), table.Enumeration tr td:nth-last-child(2), table.TypeDocumentation tr td:nth-last-child(2) {
         float: none;
	 padding: 14px 28px 14px 0;
//	 width: 30%;
	 border-top-width: 1px;
         font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,sans-serif;
      }

      table.Documentation tr td:nth-last-child(1), table.TypeMembers tr td:nth-last-child(1), table.Enumeration tr td:nth-last-child(1), table.TypeDocumentation tr td:nth-last-child(1) {
         float: none;
	 padding: 14px 0;
//	 width: 70%;
	 border-top-width: 1px;
      }

      table.TypeMembers {
        width: 100%;
      }

      table.TypeMembers tr td {
      }

      table.Documentation {
      }

      table.TypeMembers {
      }

      div.CodeExample {
        width: 100%;
        border: 1px solid #DDDDDD;
        background-color: #F8F8F8;
      }

      div.CodeExample p {
        margin: 0.5em;
        border-bottom: 1px solid #DDDDDD;
      }

      div.CodeExample div {
        margin: 0.5em;
      }

      h4 {
        margin-bottom: 0;
	font-weight: 500;
      }

      div.Signature {
        border: 1px solid #C0C0C0;
        background: #F2F2F2;
        padding: 1em;
      }
    </style>
    <script type="text/JavaScript">
      function toggle_display (block) {
        var w = document.getElementById (block);
        var t = document.getElementById (block + ":toggle");
        if (w.style.display == "none") {
          w.style.display = "block";
          t.innerHTML = "⊟";
        } else {
          w.style.display = "none";
          t.innerHTML = "⊞";
        }
      }
    </script>
  </head>
  <body>
    <div class="CollectionTitle">
      <a href="../index.html">TensorFlowSharp</a> : <a href="index.html">TensorFlow Namespace</a></div>
    <div class="SideBar">
      <p>
        <a href="#T:TensorFlow.TFBuffer">Overview</a>
      </p>
      <p>
        <a href="#T:TensorFlow.TFBuffer:Signature">Signature</a>
      </p>
      <p>
        <a href="#T:TensorFlow.TFBuffer:Docs">Remarks</a>
      </p>
      <p>
        <a href="#Members">Members</a>
      </p>
      <p>
        <a href="#T:TensorFlow.TFBuffer:Members">Member Details</a>
      </p>
    </div>
    <h1 class="PageTitle" id="T:TensorFlow.TFBuffer">TFBuffer  Class</h1>
    <p class="Summary" id="T:TensorFlow.TFBuffer:Summary">
            Holds a block of data, suitable to pass, or retrieve from TensorFlow.
            </p>
    <div>
      <h2>Syntax</h2>
      <div class="Signature" id="T:TensorFlow.TFBuffer:Signature">public class  <b>TFBuffer</b> : <a href="../TensorFlow/TFDisposable.html">TFDisposable</a></div>
    </div>
    <div class="Remarks" id="T:TensorFlow.TFBuffer:Docs">
      <h2 class="Section">Remarks</h2>
      <div class="SectionBox" id="T:TensorFlow.TFBuffer:Docs:Remarks">
            Use the TFBuffer to blobs of data into TensorFlow, or to retrieve blocks
            of data out of TensorFlow.
            
            There are two constructors to wrap existing data, one to wrap blocks that are 
            pointed to by an IntPtr and one that takes a byte array that we want to wrap.
            
            The empty constructor can be used to create a new TFBuffer that can be populated
            by the TensorFlow library and returned to user code.
            
            Typically, the data consists of a serialized protocol buffer, but other data
            may also be held in a buffer.
            </div>
      <h2 class="Section">Requirements</h2>
      <div class="SectionBox" id="T:TensorFlow.TFBuffer:Docs:Version Information">
        <b>Namespace: </b>TensorFlow<br /><b>Assembly: </b>TensorFlowSharp (in TensorFlowSharp.dll)<br /><b>Assembly Versions: </b>1.0.0.0</div>
      <h2 class="Section" id="Members">Members</h2>
      <div class="SectionBox" id="_Members">
        <p>
								See Also: Inherited members from
								<a href="../TensorFlow/TFDisposable.html">TFDisposable</a>.
							</p>
        <h2 class="Section">Public Constructors</h2>
        <div class="SectionBox" id="Public Constructors">
          <div class="SubsectionBox">
            <table class="TypeMembers">
              <tr valign="top">
                <td>
                  <div>
                  </div>
                </td>
                <td>
                  <div>
                    <b>
                      <a href="#C:TensorFlow.TFBuffer()">TFBuffer</a>
                    </b>()</div>
                </td>
                <td>
                  <span class="NotEntered">Documentation for this section has not yet been entered.</span>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <div>
                  </div>
                </td>
                <td>
                  <div>
                    <b>
                      <a href="#C:TensorFlow.TFBuffer(System.Byte[])">TFBuffer</a>
                    </b>(<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Byte">byte</a>[])</div>
                </td>
                <td>
            Initializes a new instance of the <a href="../TensorFlow/TFBuffer.html">TensorFlow.TFBuffer</a> by making a copy of the provided byte array.
            </td>
              </tr>
              <tr valign="top">
                <td>
                  <div>
                  </div>
                </td>
                <td>
                  <div>
                    <b>
                      <a href="#C:TensorFlow.TFBuffer(System.Byte[],System.Int32,System.Int32)">TFBuffer</a>
                    </b>(<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Byte">byte</a>[], <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a>)</div>
                </td>
                <td>
            Initializes a new instance of the <a href="../TensorFlow/TFBuffer.html">TensorFlow.TFBuffer</a> by making a copy of the provided byte array.
            </td>
              </tr>
              <tr valign="top">
                <td>
                  <div>
                  </div>
                </td>
                <td>
                  <div>
                    <b>
                      <a href="#C:TensorFlow.TFBuffer(System.IntPtr,System.Int64,TensorFlow.TFBuffer.BufferReleaseFunc)">TFBuffer</a>
                    </b>(<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.IntPtr">IntPtr</a>, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int64">long</a>, <a href="../TensorFlow/TFBuffer+BufferReleaseFunc.html">TFBuffer.BufferReleaseFunc</a>)</div>
                </td>
                <td>
            Initializes a new instance of the <a href="../TensorFlow/TFBuffer.html">TensorFlow.TFBuffer</a> by wrapping the unmanaged resource pointed by the buffer.
            </td>
              </tr>
            </table>
          </div>
        </div>
        <h2 class="Section">Public Properties</h2>
        <div class="SectionBox" id="Public Properties">
          <div class="SubsectionBox">
            <table class="TypeMembers">
              <tr valign="top">
                <td>[read-only]<div></div></td>
                <td>
                  <b>
                    <a href="../TensorFlow/TFDisposable.html#P:TensorFlow.TFDisposable.Handle">Handle</a>
                  </b>
                </td>
                <td>
                  <i>
                    <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.IntPtr">IntPtr</a>
                  </i>. 
            Returns the opaque handle to the object that this TFDisposable owns.
             (<i>Inherited from <a href="../TensorFlow/TFDisposable.html">TFDisposable</a>.</i>)</td>
              </tr>
            </table>
          </div>
        </div>
        <h2 class="Section">Public Methods</h2>
        <div class="SectionBox" id="Public Methods">
          <div class="SubsectionBox">
            <table class="TypeMembers">
              <tr valign="top">
                <td>
                  <div>
                  </div>
                </td>
                <td colspan="2">
                  <b>
                    <a href="../TensorFlow/TFDisposable.html#M:TensorFlow.TFDisposable.Dispose()">Dispose</a>
                  </b>()<blockquote>
            Releases all resource used by the <a href="../TensorFlow/TFDisposable.html">TensorFlow.TFDisposable</a> object.
             (<i>Inherited from <a href="../TensorFlow/TFDisposable.html">TFDisposable</a>.</i>)</blockquote></td>
              </tr>
              <tr valign="top">
                <td>
                  <div>
                  </div>
                </td>
                <td colspan="2">
                  <b>
                    <a href="../TensorFlow/TFDisposable.html#M:TensorFlow.TFDisposable.Dispose(System.Boolean)">Dispose</a>
                  </b>(<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Boolean">bool</a>)<blockquote>
            Dispose the specified object
             (<i>Inherited from <a href="../TensorFlow/TFDisposable.html">TFDisposable</a>.</i>)</blockquote></td>
              </tr>
              <tr valign="top">
                <td>
                  <div>
                  </div>
                </td>
                <td colspan="2">
                  <b>
                    <a href="../TensorFlow/TFDisposable.html#M:TensorFlow.TFDisposable.Finalize()">Finalize</a>
                  </b>()<blockquote><span class="NotEntered">Documentation for this section has not yet been entered.</span> (<i>Inherited from <a href="../TensorFlow/TFDisposable.html">TFDisposable</a>.</i>)</blockquote></td>
              </tr>
              <tr valign="top">
                <td>
                  <div>
                  </div>
                </td>
                <td colspan="2">
                  <b>
                    <a href="#M:TensorFlow.TFBuffer.ToArray()">ToArray</a>
                  </b>()<nobr> : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Byte">byte</a>[]</nobr><blockquote>
            Returns a byte array representing the data wrapped by this buffer.
            </blockquote></td>
              </tr>
            </table>
          </div>
        </div>
      </div>
    </div>
    <div class="Members" id="T:TensorFlow.TFBuffer:Members">
      <h2 class="Section" id="MemberDetails">Member Details</h2>
      <div class="SectionBox" id="_MemberDetails">
        <h3 id="C:TensorFlow.TFBuffer()">TFBuffer Constructor</h3>
        <blockquote id="C:TensorFlow.TFBuffer():member">
          <div class="msummary">
            <span class="NotEntered">Documentation for this section has not yet been entered.</span>
          </div>
          <h2>Syntax</h2>
          <div class="Signature">public  <b>TFBuffer</b> ()</div>
          <h2 class="Section">Remarks</h2>
          <div class="SectionBox" id="C:TensorFlow.TFBuffer():Remarks">
            <span class="NotEntered">Documentation for this section has not yet been entered.</span>
          </div>
          <h2 class="Section">Requirements</h2>
          <div class="SectionBox" id="C:TensorFlow.TFBuffer():Version Information">
            <b>Namespace: </b>TensorFlow<br /><b>Assembly: </b>TensorFlowSharp (in TensorFlowSharp.dll)<br /><b>Assembly Versions: </b>1.0.0.0</div>
          <hr size="1" />
        </blockquote>
        <h3 id="C:TensorFlow.TFBuffer(System.Byte[])">TFBuffer Constructor</h3>
        <blockquote id="C:TensorFlow.TFBuffer(System.Byte[]):member">
          <div class="msummary">
            Initializes a new instance of the <a href="../TensorFlow/TFBuffer.html">TensorFlow.TFBuffer</a> by making a copy of the provided byte array.
            </div>
          <h2>Syntax</h2>
          <div class="Signature">public  <b>TFBuffer</b> (<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Byte">byte</a>[] buffer)</div>
          <h4 class="Subsection">Parameters</h4>
          <blockquote class="SubsectionBox" id="C:TensorFlow.TFBuffer(System.Byte[]):Parameters">
            <dl>
              <dt>
                <i>buffer</i>
              </dt>
              <dd>Buffer of data that will be wrapped.</dd>
            </dl>
          </blockquote>
          <h2 class="Section">Remarks</h2>
          <div class="SectionBox" id="C:TensorFlow.TFBuffer(System.Byte[]):Remarks">
            This constructor makes a copy of the data into an unmanaged buffer, 
            so the byte array is not pinned.
            </div>
          <h2 class="Section">Requirements</h2>
          <div class="SectionBox" id="C:TensorFlow.TFBuffer(System.Byte[]):Version Information">
            <b>Namespace: </b>TensorFlow<br /><b>Assembly: </b>TensorFlowSharp (in TensorFlowSharp.dll)<br /><b>Assembly Versions: </b>1.0.0.0</div>
          <hr size="1" />
        </blockquote>
        <h3 id="C:TensorFlow.TFBuffer(System.Byte[],System.Int32,System.Int32)">TFBuffer Constructor</h3>
        <blockquote id="C:TensorFlow.TFBuffer(System.Byte[],System.Int32,System.Int32):member">
          <div class="msummary">
            Initializes a new instance of the <a href="../TensorFlow/TFBuffer.html">TensorFlow.TFBuffer</a> by making a copy of the provided byte array.
            </div>
          <h2>Syntax</h2>
          <div class="Signature">public  <b>TFBuffer</b> (<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Byte">byte</a>[] buffer, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a> start, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int32">int</a> count)</div>
          <h4 class="Subsection">Parameters</h4>
          <blockquote class="SubsectionBox" id="C:TensorFlow.TFBuffer(System.Byte[],System.Int32,System.Int32):Parameters">
            <dl>
              <dt>
                <i>buffer</i>
              </dt>
              <dd>Buffer of data that will be wrapped.</dd>
              <dt>
                <i>start</i>
              </dt>
              <dd>Starting offset into the buffer to wrap.</dd>
              <dt>
                <i>count</i>
              </dt>
              <dd>Number of bytes from the buffer to keep.</dd>
            </dl>
          </blockquote>
          <h2 class="Section">Remarks</h2>
          <div class="SectionBox" id="C:TensorFlow.TFBuffer(System.Byte[],System.Int32,System.Int32):Remarks">
            This constructor makes a copy of the data into an unmanaged buffer, 
            so the byte array is not pinned.
            </div>
          <h2 class="Section">Requirements</h2>
          <div class="SectionBox" id="C:TensorFlow.TFBuffer(System.Byte[],System.Int32,System.Int32):Version Information">
            <b>Namespace: </b>TensorFlow<br /><b>Assembly: </b>TensorFlowSharp (in TensorFlowSharp.dll)<br /><b>Assembly Versions: </b>1.0.0.0</div>
          <hr size="1" />
        </blockquote>
        <h3 id="C:TensorFlow.TFBuffer(System.IntPtr,System.Int64,TensorFlow.TFBuffer.BufferReleaseFunc)">TFBuffer Constructor</h3>
        <blockquote id="C:TensorFlow.TFBuffer(System.IntPtr,System.Int64,TensorFlow.TFBuffer.BufferReleaseFunc):member">
          <div class="msummary">
            Initializes a new instance of the <a href="../TensorFlow/TFBuffer.html">TensorFlow.TFBuffer</a> by wrapping the unmanaged resource pointed by the buffer.
            </div>
          <h2>Syntax</h2>
          <div class="Signature">public  <b>TFBuffer</b> (<a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.IntPtr">IntPtr</a> buffer, <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Int64">long</a> size, <a href="../TensorFlow/TFBuffer+BufferReleaseFunc.html">TFBuffer.BufferReleaseFunc</a> release)</div>
          <h4 class="Subsection">Parameters</h4>
          <blockquote class="SubsectionBox" id="C:TensorFlow.TFBuffer(System.IntPtr,System.Int64,TensorFlow.TFBuffer.BufferReleaseFunc):Parameters">
            <dl>
              <dt>
                <i>buffer</i>
              </dt>
              <dd>Pointer to the data that will be wrapped.</dd>
              <dt>
                <i>size</i>
              </dt>
              <dd>The size of the buffer to wrap.</dd>
              <dt>
                <i>release</i>
              </dt>
              <dd>Optional, if not null, this method will be invoked to release the block.</dd>
            </dl>
          </blockquote>
          <h2 class="Section">Remarks</h2>
          <div class="SectionBox" id="C:TensorFlow.TFBuffer(System.IntPtr,System.Int64,TensorFlow.TFBuffer.BufferReleaseFunc):Remarks">
            This constructor wraps the buffer as a the data to be held by the <a href="../TensorFlow/TFBuffer.html">TensorFlow.TFBuffer</a>,
            if the release parameter is null, then you must ensure that the data is not released before the TFBuffer
            is no longer in use.   If the value is not null, the provided method will be invoked to release
            the data when the TFBuffer is disposed, or the contents of the buffer replaced.
            </div>
          <h2 class="Section">Requirements</h2>
          <div class="SectionBox" id="C:TensorFlow.TFBuffer(System.IntPtr,System.Int64,TensorFlow.TFBuffer.BufferReleaseFunc):Version Information">
            <b>Namespace: </b>TensorFlow<br /><b>Assembly: </b>TensorFlowSharp (in TensorFlowSharp.dll)<br /><b>Assembly Versions: </b>1.0.0.0</div>
          <hr size="1" />
        </blockquote>
        <h3 id="M:TensorFlow.TFBuffer.ToArray()">ToArray Method</h3>
        <blockquote id="M:TensorFlow.TFBuffer.ToArray():member">
          <div class="msummary">
            Returns a byte array representing the data wrapped by this buffer.
            </div>
          <h2>Syntax</h2>
          <div class="Signature">public <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Byte">byte</a>[] <b>ToArray</b> ()</div>
          <h4 class="Subsection">Returns</h4>
          <blockquote class="SubsectionBox" id="M:TensorFlow.TFBuffer.ToArray():Returns">The array.</blockquote>
          <h2 class="Section">Remarks</h2>
          <div class="SectionBox" id="M:TensorFlow.TFBuffer.ToArray():Remarks">
            <span class="NotEntered">Documentation for this section has not yet been entered.</span>
          </div>
          <h2 class="Section">Requirements</h2>
          <div class="SectionBox" id="M:TensorFlow.TFBuffer.ToArray():Version Information">
            <b>Namespace: </b>TensorFlow<br /><b>Assembly: </b>TensorFlowSharp (in TensorFlowSharp.dll)<br /><b>Assembly Versions: </b>1.0.0.0</div>
          <hr size="1" />
        </blockquote>
      </div>
    </div>
    <hr size="1" />
    <div class="Copyright">
    </div>
  </body>
</html>